$(function(){
		$('#cet_form').submit(function(){
			var company_name = $('#company_name').val();
			var linkman      = $('#linkman').val();
			var email        = $('#email').val();
			var phone        = $('#phone').val();
			if(company_name == "")
			{
				$.dialog.alert('请您填写公司名称',{width:300,backClickClose:true,globalRadius:false,globalBackground:'#F9BB00',globalBorder:'#F9BB00 solid 1px'});
				return false;		
			}	
			if(linkman == "")
			{
				$.dialog.alert('请您填写联系人名称',{width:300,backClickClose:true,globalRadius:false,globalBackground:'#F9BB00',globalBorder:'#F9BB00 solid 1px'});
				return false;		
			}	
			if(email == "")
			{
				$.dialog.alert('请您填写email',{width:300,backClickClose:true,globalRadius:false,globalBackground:'#F9BB00',globalBorder:'#F9BB00 solid 1px'});
				return false;		
			}
			if(email.match(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == null)
			{
				$.dialog.alert('请您填写正确的邮箱地址',{width:300,backClickClose:true,globalRadius:false,globalBackground:'#F9BB00',globalBorder:'#F9BB00 solid 1px'});
				return false;
			}
			if(phone == "")
			{
				$.dialog.alert('请您填写联系人电话',{width:300,backClickClose:true,globalRadius:false,globalBackground:'#F9BB00',globalBorder:'#F9BB00 solid 1px'});
				return false;		
			}	
			return true;
		});
})